package design.mode.dispatcher.examine.factory;

import java.util.HashMap;
import java.util.Map;

public class NumberLetterMapping {
    private static NumberLetterMapping instance = null;
    private Map<Integer, String> mapping;

    private NumberLetterMapping() {
        mapping = new HashMap<>();
        mapping.put(3, "A");
        mapping.put(7, "B");
        mapping.put(9, "C");
    }

    public static NumberLetterMapping getInstance() {
        if (instance == null) {
            instance = new NumberLetterMapping();
        }
        return instance;
    }

    public Map<Integer, String> getMapping() {
        return mapping;
    }
}
